<template>
  <div class="">
    <h4>子传父</h4>
    <h1>来自子组件的msg{{ fromson }}</h1>
    <hr />
    <son @aa="fun" />
  </div>
</template>

<script>
import son from "../components/Son.vue";
export default {
  data() {
    return {
      fromson: "",
    };
  },
  mounted() {},
  methods: {
    fun(val) {
      console.log(val);
      this.fromson = val;
    },
  },
  components: {
    son,
  },
};
</script>

<style lang="scss"></style>
